package com.gitee.mybase.top.util;

import java.io.Serializable;

public class UserContext implements Serializable {

    private static ThreadLocal<String> loginEntityThreadLocal=new ThreadLocal<>();

    public static String getUserKey() {
        return loginEntityThreadLocal.get();
    }

    public static void setUserKey(String key) {
        loginEntityThreadLocal.set(key);
    }

    public static void removeUserKey() {
        loginEntityThreadLocal.remove();
    }

}
